package com.qckj.amz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qckj.common.annotation.Excel;
import com.qckj.common.core.domain.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 侵权词维护对象 t_config_infringing_word
 *
 * @author luchuan
 * @since 1.0 2022-04-23
 */
@Entity
@Table(name = "t_config_infringing_word")
@Data
public class ConfigInfringingWord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    @Excel(name = "操作序号", cellType = Excel.ColumnType.NUMERIC)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    @Column(name="id")
    private Long id;

    /** 侵权词 */
    @Excel(name = "侵权词")
    @Column(name="infringing_word")
    private String infringingWord;

    /** 侵权词描述 */
    @Excel(name = "侵权词描述")
    @Column(name="infringing_word_desc")
    private String infringingWordDesc;

    /** 替换词 */
    @Excel(name = "替换词")
    @Column(name="replacement_word")
    private String replacementWord;

    /** 替换词描述 */
    @Excel(name = "替换词描述")
    @Column(name="replacement_word_desc")
    private String replacementWordDesc;

    /** 状态（多级字典：全局状态amz_status值） */
    @Excel(name = "状态", readConverterExp = "多=级字典：全局状态amz_status值")
    @Column(name="status")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    @Column(name="create_by")
    private String createBy;

    /** 创建时间 */
    @Column(name="create_time")
    private Date createTime;

    /** 更新人 */
    @Column(name="update_by")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Column(name="update_time")
    private Date updateTime;

    /** 备注 */
    @Excel(name = "备注")
    @Column(name="remark")
    private String remark;


}
